package com.cykj.mapper;


import com.cykj.pojo.PsMenu;
import com.cykj.pojo.PsRole;

import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @BeLongsProject: psychologically
 * @BeLongsPackage: com.cykj.mapper
 * @Author: 小李
 * @Date: 2025/2/6 00:29
 * @Description: 角色表mapper层
 * @Version: 1.0
 */
public interface RoleMapper {
    //获取全部角色
    List<PsRole> getAllRole();

    //获取角色已分配菜单
    List<PsMenu> getRoleMenu(@Param("roleId") Integer roleId);

    //删除
    Integer deletaRoleMenu(@Param("roleId")Integer roleId);

    //批量添加
    Integer addRoleMenu(@Param("list")List<Long> list, @Param("roleId")Integer roleId);
}
